#include <stdio.h>
int main()
{
    int t,i,j;
    int arr[10]={};
    for (i=0;i<=9;i++)
    {printf("输入数字：");
        scanf ("%d",&arr[i]);}
    for (i=0;i<=9;i++)
    {for (j=i+1;j<=9-i;j++)
      if(arr[j]>arr[j+1])
      {t=arr[j];arr[j]=arr[j+1];arr[j+1]=t;}
    }
    for (i=0;i<=9;i++)
    printf("%d ",arr[i]);
    return 0;
}